package com.pig4cloud.pig.module.api.entity.wx;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "user_sign_record")
public class UserSignRecord implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String signDate;

    private Double integral;

    private Integer signIndex;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer state;

    /**
     * 中奖金额
     */
	@Excel(name = "打款金额")
    private BigDecimal cashMoney;

    /**
     *  现金打款类型  0 - 没有现金金豆奖励 1 - 现金奖励  2 - 金豆奖励
     */
	private Integer cashType;

    /**
     * 支付流水号
     */
    private String tradeNo;

    /**
     * 微信openid
     */
    private String openId;


    /**
     *  支付状态
     */
    private Integer payState;
    /**
     *  错误code
     */
    private String errCodeDes;

    /**
     *  结果code
     */
    private String resultCode;
    /**
     *  请求数据
     */
    private String payStr;
    /**
     *  响应数据
     */
    private String rebackStr;

	/**
	 * 备注信息
     */
    private String remark;


	@Excel(name = "签到时间")
	@TableField(exist = false)
	private String createTimeStr;

	@Excel(name = "支付状态")
	@TableField(exist = false)
	private String payStateStr;

	@Excel(name = "用户昵称")
	@TableField(exist = false)
	private String nickName;


	@Excel(name = "签到天数")
	@TableField(exist = false)
	private String signDays;

	@TableField(exist = false)
	private String faceUrl;

	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;

}
